package com.wpd.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import com.wpd.bo.WpdEnter;
import com.wpd.service.IWpdEnterService;
import com.wpd.dao.IWpdEnterDao;
import com.common.bo.PageBean;

/**
 *
 *  @author : 自动生成
 *  @date   : 2017年07月14日 10:18:16
 *  @desc   : WpdEnter服务层实现类定义
 */

@Service
@Transactional
public class WpdEnterServiceImpl implements IWpdEnterService  {
	
	@Autowired
	private IWpdEnterDao wpdEnterDao;
	
	@Override
    public Integer insert(WpdEnter wpdEnter){
    	return wpdEnterDao.insert(wpdEnter);
    }
    @Override
    public void insertBatchEntity(List<WpdEnter> wpdEnterList){
    	wpdEnterDao.insertBatchEntity(wpdEnterList);
    }
    @Override
    public Integer delete(WpdEnter wpdEnter){
    	return wpdEnterDao.delete(wpdEnter);
    }
    @Override
    public Integer update(WpdEnter wpdEnter){
    	return wpdEnterDao.update(wpdEnter);
    }
    @Override
    public List<WpdEnter> query(WpdEnter wpdEnter){
    	return wpdEnterDao.query(wpdEnter);
    }
    @Override
    public int getTotalCount(WpdEnter wpdEnter){
    	return wpdEnterDao.getTotalCount(wpdEnter);
    }
    @Override
    public List<WpdEnter> queryPageList(WpdEnter wpdEnter, PageBean pageBean){
		return wpdEnterDao.queryPageList(wpdEnter, pageBean.getStartPageIndex(), pageBean.getPageSize());
	}
	@Override
	public WpdEnter getBean(WpdEnter wpdEnter){
		return wpdEnterDao.getBeanById(wpdEnter.getGuid());
	}
}
